package com.my.hp_hr.dao.liuhao_dao;

import com.my.hp_hr.entity.liuhao_entity.Attendance;
import com.my.hp_hr.entity.liuhao_entity.Employee;
import com.my.hp_hr.util.BaseDAO;

import java.util.List;

public class AttendanceDao extends BaseDAO {


    public List<Attendance> selectAttendancePageList(int number) throws Exception {
       String sql="select * from attendance where employee_number=?;";
       Object[]objects={number};
       return  getList(sql,new Attendance(),objects);
    }

    public Employee selectEmployeeByEmployee_number(int employee_number) throws Exception {
        String sql="select * from employee where employee_number=?;";
        Object[]objects={employee_number};
        return getOne(sql,new Employee(),objects);
    }
}
